<!--
 * @Descripttion:
 * @version:
 * @Author: zhuzm@linkstec.com
 * @Date: 2023-03-21 15:02:50
 * @LastEditors: sueRimn
 * @LastEditTime: 2023-03-21 15:06:46
-->
<template>
  <div class="header-nav-dropdown-wrapper">
    <ul class="ul-dropdown-list">
      <li v-for="item in news" :key="item.value" class="item" @click.stop="clickItem(item)">
        <div class="item-title">{{ item.title }}</div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
    data () {
      return {
      };
    },
    props: {
      news: {
        type: Array,
        default: () => []
      }
    },
    methods: {
      clickItem (item) {
        this.$parent.hoverChange(item, 'enter');
      }
    }
  };
  </script>
  <style lang="scss" scoped>
  .header-nav-dropdown-wrapper {
    width: 180px;
    padding-top: 17px;
    background: #FFFFFF;
    border: 1px solid #D8DCE6;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    .ul-dropdown-list {
      padding: 0 20px 10px;
      .item {
        cursor: pointer;
        &:hover {
          .item-title {
            color: #2B86DD;
          }
          .item-text{
            color: #2B86DD;
          }
        }
        .item-title {
          font-family: 'Source Han Sans CN';
          font-style: normal;
          font-weight: 500;
          font-size: 16px;
          line-height: 24px;
          color: #000000;
          padding-bottom: 8px;
        }
      }
    }
  }
</style>
